package com.synergy.stockflow.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Schema(description = "字典项传输对象")
@Data
public class SysDictItemDTO {
    @Schema(description = "值编号", example = "101")
    private Integer dictItemId;

    @Schema(description = "类型编号", example = "1")
    private Integer typeId;

    @Schema(description = "值编码", example = "PENDING")
    private String itemKey;

    @Schema(description = "值内容", example = "pending")
    private String itemValue;

    @Schema(description = "标签", example = "待支付")
    private String label;

    @Schema(description = "国际化码", example = "dict.order.pending")
    private String locale;

    @Schema(description = "排序号", example = "1")
    private Integer sort;

    @Schema(description = "状态 (0:禁用, 1:启用)", example = "1")
    private Byte status;

    @Schema(description = "创建人编号", example = "1001")
    private Long createBy;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Schema(description = "更新人编号", example = "1001")
    private Long updateBy;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}